package com.sishu.njrtsdms.service.impl;


import com.sishu.njrtsdms.domain.core.GenericServiceImpl;
import com.sishu.njrtsdms.domain.core.PageInfo;
import com.sishu.njrtsdms.domain.dto.TeachConPrjTmplDTO;
import com.sishu.njrtsdms.domain.vo.TeachConPrjTmplVO;
import com.sishu.njrtsdms.jooq.codegen.tables.daos.TeachConPrjTmplDAO;
import com.sishu.njrtsdms.jooq.codegen.tables.pojos.TeachConPrjTmpl;
import com.sishu.njrtsdms.service.TeachConPrjTmplService;

import org.springframework.stereotype.Service;

@Service
public class TeachConPrjTmplServiceImpl
        extends GenericServiceImpl<TeachConPrjTmpl, org.jooq.types.ULong>
        implements TeachConPrjTmplService {

    private final TeachConPrjTmplDAO prjTmplDAO;


    public TeachConPrjTmplServiceImpl(TeachConPrjTmplDAO dao,
                                      TeachConPrjTmplDAO prjTmplDAO) {
        super(dao);
        this.prjTmplDAO = prjTmplDAO;
    }


    @Override
    public PageInfo<TeachConPrjTmplVO> page(TeachConPrjTmplDTO teachConPrjTmplDTO) {
        return prjTmplDAO.page(teachConPrjTmplDTO);
    }

    @Override
    public Long totalCount(TeachConPrjTmplDTO teachConPrjTmplDTO) {
        return prjTmplDAO.totalCount(teachConPrjTmplDTO);
    }
}